
package date;

import java.util.Calendar;

/**
 * 給 年, 月, 日, 來求得 long 的數值<br>
 * <br>
 * Copyright: Copyright (c) 2001-2007<br>
 * Company: 一零四資訊科技股份有限公司
 * 
 * @author Eric.Kao(eric.kao@104.com.tw)
 * @version 1.0
 */
public class FetchDateLongValue
{
	public FetchDateLongValue()
	{
		int year = 1979;
		int month = 12;
		int day = 12;

		Calendar calendar = Calendar.getInstance();

		calendar.set( Calendar.YEAR, year );
		calendar.set( Calendar.MONTH, month );
		calendar.set( Calendar.DAY_OF_MONTH, day );

		long dateLong = calendar.getTimeInMillis();

		System.out.println( "Date long:" + dateLong );
	}

	public static void main( String[] args )
	{
		new FetchDateLongValue();
	}
}
